package com.ljx.itbbs.server.article.domain.enums;

import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author: LiJunXi
 * @Description:
 * @Date: 2024-03-27  17:44
 */
@Getter
@AllArgsConstructor
public enum LikeEnum {

    ARTICLE("article:", "文章", 1),
    COMMENT("comment:", "评论", 2);

    private String prefix;
    private String desc;
    private Integer type;

    public static String getObjKey(LikeEnum likeEnum, String objId){
        return likeEnum.getPrefix() + objId;
    }

}
